<!doctype html>
<html lang="zh-cn">
<head>
	<meta charset="UTF-8">
	<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>川信职院贴吧</title>
	<link rel="shortcut icon" href="../../static/img/favicon.png" />
	<link href="../../static/css/bootstrap.min.css" rel="stylesheet" />
	<link href="../../static/font-awesome/css/font-awesome.css" rel="stylesheet" />
	<link href="../../static/css/index.css" rel="stylesheet" />
	<link rel="stylesheet" href="static/kindeditor/themes/default/default.css" >
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
</head>

<body>
	<div id="wrap">
		<header id="navbar" class="navbar navbar-default navbar-fixed-top" role="navgation">
			<div class="container">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
					<a class="navbar-brand" href="/">
						<img src="../../static/img/favicon.png" alt="" width="18px">
						<strong>川信职院贴吧</strong>
					</a>
				</div><!--/.nav-header-->
				<div class="collapse navbar-collapse">
					<ul id="nav-right" class="nav navbar-nav navbar-right">
						<li class="btn-group" style="padding-top:9px">
							<button type="button" class="btn btn-default btn-sm">
								亲爱的{{.user.UserName}}
							</button>
							<button type="button" 
							class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
								<span class="caret"></span>
								<span class="sr-only">Toggle Dropdown</span>
							</button>
							<ul class="dropdown-menu" role="menu">
								<li><a href="/admin/userInfo">个人中心</a></li>
								<li class="divider"></li>
								<li><a href="/admin/logout">注销登录</a></li>
							</ul>
						</li>
					</ul>
				</div><!--/.nav-right-->
			</div>
		</header><!--/.header-->
		<section class="container personal">
			<div class="row">
				<div class="col-xs-12 col-sm-3" role="navigation">
					<div class="sidebar-nav">
						<div class="panel panel-default">
						<div class="panel-heading"><strong>系统管理</strong></div>
						<a href="#bbs-menu" class="nav-header" data-toggle="collapse">
							<i class="icon-tag"></i>
							帖子管理
							<i class="icon-chevron-up">&nbsp;</i>
						</a>
						<ul id="bbs-menu" class="nav nav-list collapse in">
							<li><a href="/admin/bbsAdd">发布新帖子</a></li>
							<li><a href="/admin/publishList">我发布的帖子</a></li>
							<li><a href="/admin/responseList">我回复的帖子</a></li>
						</ul>
						{{if .type }}
						<a href="#kinds-menu" class="nav-header" data-toggle="collapse">
							<i class="icon-tag"></i>
							分类管理
							<i class="icon-chevron-up">&nbsp;</i>
						</a>
						<ul id="kinds-menu" class="nav nav-list collapse in">
							<li><a href="/admin/kindsList">分类列表</a></li>
							<li><a href="/admin/kindsAdd">添加分类</a></li>
						</ul>

						<a href="#user-menu" class="nav-header" data-toggle="collapse">
							<i class="icon-user"></i>
							用户管理 
							<i class="icon-chevron-up"></i>
						</a>
						<ul id="user-menu" class="nav nav-list collapse in">
							<li ><a href="/admin/userList">用户列表</a></li>
							<li ><a href="/admin/userAdd">添加系统管理员</a></li>
						</ul>
						{{end}}
						<a href="#personal-menu" class="nav-header" data-toggle="collapse">
							<i class="icon-exclamation-sign"></i>
							个人信息
							<i class="icon-chevron-up">&nbsp;</i>
						</a>
						<ul id="personal-menu" class="nav nav-list collapse in">
							<li><a href="/admin/userInfo">查看信息</a></li>
							<li><a href="/admin/userUpdate">修改信息</a></li>
						</ul>

						</div>
					</div>
				</div><!--/nav-->
				{{.LayoutContent}}
			<div>
			<br />
		</section>
	</div><!--/wrap-->

	<footer id="footer">
		<div class="container">
			<p class="text-muted">&copy; Dowish.net　2014</p>
		</div>
	</footer>

	<script src="../../static/js/jquery-1.10.1.min.js"></script>
	<script src="../static/kindeditor/kindeditor-min.js"></script>
	<script src="../static/kindeditor/lang/zh_CN.js"></script>
	<script src="../static/kindeditor/kindeditor-init.js"></script>
	<script src="../../static/js/bootstrap.min.js"></script>
</body>

</html>